﻿#region Header

// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------

#endregion

#region Usings

using System;

#endregion


namespace ScrumTable.Common.Threading
{
    /// <summary>
    /// Provides an exception which is thrown in conjunction with the
    /// threading layer of ballerburg.
    /// </summary>
    [Serializable]
    public class ThreadingException : Exception
    {
        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        /// <summary>
        /// Creates a new ThreadingException with an inner Exception.
        /// </summary>
        /// <param name="message">Provides a human readable exception message.</param>
        /// <param name="error">Error which has been thrown.</param>
        public ThreadingException(string message, Exception error)
            : base(message, error)
        {
        }

        /// <summary>
        /// Creates a new ThreadingException with an inner Exception.
        /// </summary>
        /// <param name="message">Provides a human readable exception message.</param>
        public ThreadingException(string message)
            : base(message)
        {
        }

        #endregion
    }
}
